import request from './request'
import axios from 'axios'

// 获取文章列表
export const reqGetArticle = ({ url, params, method = 'GET' }) => {
  return request({
    url,
    method,
    params
  })
}
// 获取用户头像
export const reqGetArticleAuthor = () => {
  return axios({
    url: 'http://localhost:3000/ArticlePage',
    method: 'GET'
  })
}

// 获取文章详情
export const reqGetArticleDetail = ({ url, params, method = 'GET' }) => {
  return request({
    url,
    method,
    params
  })
}

// 获取文章详情评论
export const reqGetArticleDetailComment = ({ url, params, method = 'GET' }) => {
  return request({
    url,
    method,
    params
  })
}